<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('duanzu/users', UserController::class);
    $router->resource('auth/user', RootController::class);
    $router->resource('duanzu/fas', InvitationCeremonyController::class);
    $router->resource('duanzu/orders', OrderController::class);
    $router->resource('duanzu/order_coupon', OrderCouponController::class);
    $router->resource('duanzu/cash', CashController::class);

    $router->get('duanzu/table/{val?}/{show?}', 'LookController@table');
    $router->post('duanzu/users/{val?}', 'RootController@delete');
});
